package com.nus.fellowmark.modules.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.response.ResponseWrapper;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.UserEntity;
import com.nus.fellowmark.modules.user.dto.UserLoginDTO;
import com.nus.fellowmark.modules.user.dto.UserRegisterDTO;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    ResponseWrapper<Integer> register(UserRegisterDTO userRegisterDTO);


    ResponseWrapper<Integer> checkPassword(UserLoginDTO userLoginDTO);

    void removeByUserIds(List<Integer> asList);

    String getUserName(Integer studentId);

    UserEntity getByStudentId(Integer studentId);

    UserEntity getByEmail(String email);
}

